<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 嵌入HTML文件中 -->
    <script>
        // var声明变量
        var num = 10;
        var age = 20;
        //重新赋值
        num = 30;
        //打印
        console.log(num)

        

    </script>

    <!-- <script src="#"></script>  引入本地独立js文件 -->
</body>
</html>